<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Team>" %>
<%@ Import Namespace="TeamCommunitySolution.Domain.DataLayer.Base"%>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Create
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <script type="text/javascript">
        $(function() {
            $("#DateFounded").datepicker();
            $("#DateFounded").datepicker('option', { dateFormat: "yy/mm/dd" });
        });
    </script>

    <h2>
        Create</h2>
    <div>
        <%= Html.ValidationSummary("Create was unsuccessful. Please correct the errors and try again.") %>
        <% using (Html.BeginForm())
           {
               Html.RenderPartial("~/Views/Team/TeamForm.ascx"); %>
    </div>
    <% } %>
    <div>
        <%=Html.ActionLink("Back to List", "Index") %>
    </div>
</asp:Content>
